﻿
namespace Framework.Mvc.ViewModels
{
    public class InstanceWithOneViewModel<TInstance, TWithOne> : InstanceViewModel<TInstance>
        where TInstance : class
    {
        public InstanceWithOneViewModel(TInstance instance, TWithOne withOne)
        {
            this.WithOne = withOne;
            this.Instance = instance;
        }

        public TWithOne WithOne { get; private set; }
    }
}
